package com.itheima.chapter08.stream;

import javafx.scene.effect.SepiaTone;

import java.util.*;
import java.util.stream.Stream;

//stream流生成
public class demo2 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        Stream<String> liststream = list.stream();
        System.out.println("---------------------");
        Set<String> set =new HashSet<>();
        Stream<String> setstream = set.stream();
        System.out.println("---------------------");
        Map<String,String> map =new HashMap<>();
        Stream<String> keystream = map.keySet().stream();
        Stream<String> valuestream = map.values().stream();
        Stream<Map.Entry<String, String>> entrystream = map.entrySet().stream();
        System.out.println("----------------------");
        String[] strArray = {"hello","world","java"};
        Stream<String> strArraystream = Arrays.stream(strArray);
        System.out.println("----------------------");
        Stream<String> strArr =Stream.of("1","1","3");
        Stream<Integer> integerStream = Stream.of(1, 3, 6, 9, 66);
    }
}
